<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HtmlRepresentation.Master" Inherits="System.Web.Mvc.ViewPage<AltNetUK.Models.Event>" %>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
<div class='vevent'>
    <h3 class='summary'><a class="url" href='<%=new Uri(this.Request.Url, this.ViewData.Model.Path)%>'><%=Html.Encode(this.ViewData.Model.Name)%></a></h3>
    <div class='description'><em><%=this.ViewData.Model.Description%></em></div>
    <p><a href='<%=this.ViewData.Model.Path%>.ics' rel='bookmark'><img src='http://farm3.static.flickr.com/2064/3533405488_35f14b1d51_o.png' height='48' width='48' alt'Calendar'/></a>&nbsp;<abbr class='dtstart' title='<%=this.ViewData.Model.Start%>'><%=this.ViewData.Model.Start.Date%> from <%=this.ViewData.Model.Start.Time%></abbr> until <abbr class='dtend' title='<%=this.ViewData.Model.End%>'><%=this.ViewData.Model.End.Time%></abbr></p>
    <p><small><a href='http://maps.google.co.uk/maps?q=<%=Url.Encode(this.ViewData.Model.Address)%>' rel='nofollow'><span class='location'><%=Html.Encode(this.ViewData.Model.Address)%></span></a></small></p>
</div>
<hr />
<%=this.ViewData.Model.Detail%>
<h2>Attendees</h2>
<ol>
<% foreach (KeyValuePair<string, Registration> item in this.ViewData.Model.Registrations.Attendees) { %>
    <li><%=Html.Encode(item.Value.Name)%>
    <% if (!string.IsNullOrEmpty(item.Value.Twitter)) { %>
    &nbsp;<a href='http://twitter.com/<%=Url.Encode(item.Value.Twitter) %>' rel='bookmark'>@<%=Html.Encode(item.Value.Twitter)%></a></li>
    <% } %>
    </li>
<% } %>
</ol>
</asp:Content>